package org.eclipselabs.egf.portfolio.task.scala.test.classes

import org.eclipse.core.runtime.IProgressMonitor
import org.eclipse.egf.core.EGFCorePlugin
import org.eclipse.egf.core.producer.InvocationException
import org.eclipse.egf.ftask.producer.context.ITaskProductionContext
import org.eclipse.egf.ftask.producer.invocation.ITaskProduction

class WriteClassAttribut extends ITaskProduction{
	
	def preExecute(taskProductionContext:ITaskProductionContext , monitor:IProgressMonitor ) ={
	}
	
	def doExecute(taskProductionContext:ITaskProductionContext , monitor:IProgressMonitor )={
//		var clazz = taskProductionContext.getInputValue("inClass", classOf[A])
//		var attr = clazz.attribut
//		EGFCorePlugin.getDefault().logInfo("task reads attributs from class : " + attr)
//		clazz.imprimer()
		taskProductionContext.setOutputValue("outClass"," Hello world! ")
	}
	
	def postExecute(taskProductionContext:ITaskProductionContext , monitor:IProgressMonitor )={
	}
}